<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%url_blacklist}}".
 *
 * @property integer $id
 * @property string $name
 * @property integer $advertiser_id
 * @property integer $type
 * @property string $last_update
 */
class UrlBlacklist extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%url_blacklist}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name'], 'required'],
            [['advertiser_id', 'type'], 'integer'],
            [['last_update'], 'safe'],
            [['name'], 'string', 'max' => 128]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'advertiser_id' => 'Advertiser ID',
            'type' => 'Type',
            'last_update' => 'Last Update',
        ];
    }
}
